﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Edit.Master" AutoEventWireup="true"
    CodeBehind="SingleWellManage.aspx.cs" Inherits="Web.Views.DataManage.SingleWellManage" %>

<%@ Register TagName="SinglewellFilter" TagPrefix="x" Src="~/UserControls/SinglewellFilter.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Javascript/UserControls.js" type="text/javascript"></script>
    <%--<link href="../../App_Themes/NewPage/Styles/kington.css" rel="Stylesheet" type="text/css" />--%>
    <style type="text/css">
        html
        {
            width: 99%;
            height: 99%;
        }
        table{table-layout:fixed;border-collapse: collapse;border: 1px solid #B4C9C6;width:100%}
        td{border:solid #B4C9C6 1px;border-collapse:collapse; padding-left:2px; line-height:22px}
        .btn2{margin:2px 2px 2px 2px;width:60px;height:20px;BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid;}
        td.lable2 {text-align:right;padding-right:2px; height:20px; font-weight:bold; color:#952023; background-color:#F3F8F7; }
    </style>
    <script type="text/javascript">
        function delClick() {
            return window.confirm("确定删除？");
        }
        function viewClick(DataID) {
            window.open("../SingleWellManage/SingleWellView.aspx?DataID=" + DataID, "", "titlebar = no, resizable= yes, scrollbars = yes");
        }
        function editClick(DataID) {
            window.open("../SingleWellManage/SingleWellEntry.aspx?isfromdatamanage=true&RecordID=" + DataID, "", "titlebar = no, resizable= yes, scrollbars = yes");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="button" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="edit" runat="server">
    <div>
        <x:SinglewellFilter ID="xSinglewell" runat="server" />
    </div>
    <div runat="server" id="divAgent">
        <ep:EPGridView ID="gv_SingleWellList" runat="server" Width="100%" AutoGenerateColumns="False"
            dataSortExpression="" EnableEmptyContentRender="True" EnableModelValidation="True"
            Goto="0" GvPageCount="0" ShowCheckBox="False" DataKeyNames="DataID" PagerSettings-Visible="false">
            <Columns>
                <asp:BoundField DataField="DataID" Visible="false" />
                <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="7%">
                    <ItemTemplate>
                        <a href="#" id='view_<%# Eval("DataID") %>' onclick="viewClick('<%# Eval("DataID") %>');">查看</a>&nbsp;
                        <a href="#" id='edit_<%# Eval("DataID")%>' onclick="editClick('<%# Eval("DataID") %>');">编辑</a>&nbsp;
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("DataID") %>'  OnClick="Deleted_Click" OnClientClick="return delClick();">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField HeaderText="文件名" DataTextField="DataFileName" DataNavigateUrlFormatString="../SingleWellManage/SingleWellView.aspx?DataID={0}"
                    DataNavigateUrlFields="DataID" HeaderStyle-Width="20%" />
                <asp:BoundField HeaderText="施工措施" DataField="WORKMODE" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="开工日期" DataField="BEGINDATE" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center"
                    DataFormatString="{0: yyyy-MM-dd}">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="完工日期" DataField="FINISHDATE" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center"
                    DataFormatString="{0: yyyy-MM-dd}">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="井号" DataField="WELLCODE" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="井别" DataField="WELLTYPE" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="开钻日期" DataField="BEGINWORKDATE" HeaderStyle-Width="7%"
                    ItemStyle-HorizontalAlign="Center" DataFormatString="{0: yyyy-MM-dd}">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="完钻日期" DataField="FINISHWORKDATE" HeaderStyle-Width="7%"
                    ItemStyle-HorizontalAlign="Center" DataFormatString="{0: yyyy-MM-dd}">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="完钻深度" DataField="WELLDEPTH" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="7%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
            </Columns>
        </ep:EPGridView>
        <ep:AspNetPager SubmitButtonText=" GO " ID="aspNetPagerSearch" Height="26px" Width="100%"
            CssClass="yahoo2" runat="server" PageSize="10" LayoutType="Table" ShowCustomInfoSection="Right"
            CustomInfoClass="custom" CustomInfoStyle=" clear:both;" ShowPageIndexBox="Always"
            SubmitButtonImageUrl="../Images/go.png" ShowPageIndex="true" PageIndexBoxType="TextBox"
            CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条"
            OnPageChanging="aspNetPagerSearch_PageChanging" AlwaysShow="true" OnPageSizeChanging="aspNetPagerSearch_PageSizeChanging">
        </ep:AspNetPager>
    </div>
</asp:Content>
